<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../00.插件/babel.min.js"></script>
  <script src="../00.插件/react.development.js"></script>
  <script src="../00.插件/react-dom.development.js"></script>
</head>

<body>
  <div id="app"> </div>
  <script type="text/babel">

    const vDOM = (
      <div className="outer">
        <h1 className="sex">JSX</h1>
        <p style={{color:"red",fontSize:"80px"}}>我不是红色</p>
        <p className="active" htmlFor="form">今天的天气下雨了</p>
      </div>
    );


    
    //创建容器并渲染虚拟DOM
    ReactDOM.createRoot(document.getElementById('app')).render(vDOM)

    // console.log(vDOM)
    // console.log(vDOM.props.children[0].type)
    // const a = vDOM.props.children[0].ref

  </script>
</body>

</html>